<%--
  Created by IntelliJ IDEA.
  User: guoshunw
  Date: 13-9-2
  Time: 上午10:02
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%--<s:debug />--%>

<tr>
    <td class="label"><s:text name="request.projectOwner"/></td>
    <td>
        <s:textfield theme="simple" id="attr_projectOwner" name="attr_projectOwner" disabled="true" value="%{req.attributes.attr_projectOwner}"/>
    </td>
    <td class="label"><s:text name="request.projectStartDate"/></td>
    <td>
        <s:textfield theme="simple" id="attr_projectStartingDate" name="attr_projectStartingDate" disabled="true" value="%{req.attributes.attr_projectStartingDate}"/>
    </td>
</tr>

<tr>
    <td class="label"><s:text name="request.projectType"/></td>
    <td>
        <s:select headerKey="" headerValue="%{getText('pleaseSelect')}"
                  required="true" list="{'Program', 'Offer'}" id="attr_projectType"
                  name="attr_projectType" disabled="true"
                  value="%{req.attributes.attr_projectType}"
                  theme="simple"/>
    </td>
    <td class="label"><s:text name="request.componentAndRelease"/></td>
    <td>
        <s:select headerKey="" headerValue="%{getText('pleaseSelect')}"
                  required="true" list="componentAndReleases"
                  id="attr_componentAndRelease"  disabled="true"
                  name="attr_componentAndRelease"
                  value="%{req.attributes.attr_componentAndRelease}"
                  theme="simple"/>
    </td>
</tr>


<tr>
    <td class="label"><s:text name="request.plcType"/></td>
    <td>
        <s:select headerKey="" headerValue="%{getText('pleaseSelect')}"
                  required="true" list="{'Minor', 'Major', 'Maintenance', 'Composite'}" id="attr_PLCType"
                  name="attr_PLCType" disabled="true"
                  value="%{req.attributes.attr_PLCType}"
                  theme="simple"/>
    </td>
    <td class="label"><s:text name="request.projectRigor"/></td>
    <td>
        <s:select headerKey="" headerValue="%{getText('pleaseSelect')}"
                  required="true" list="{'High', 'Medium', 'Low'}" id="attr_projectRigor"
                  name="attr_projectRigor" disabled="true"
                  value="%{req.attributes.attr_projectRigor}"
                  theme="simple"/>
    </td>
</tr>


<tr>
    <td class="label"><s:text name="request.projectState"/></td>
    <td>
        <s:select headerKey="" headerValue="%{getText('pleaseSelect')}"
                  required="true" list="{'COMMITTED', 'FORECAST', 'MIGRATED', 'PLANNING'}" id="attr_projectState"
                  name="attr_projectState" disabled="true"
                  value="'FORECAST'"
                  theme="simple"/>
    </td>
    <td class="label"><s:text name='request.projectName'/></td>
    <td>
        <s:textfield id="attr_projectName" name="attr_projectName" value="%{req.attributes.attr_projectName}"  disabled="true"
                     theme="simple"/>_<s:property value="programMappingExt[req.attributes.attr_projectType]"/>
    </td>
</tr>

<tr>
    <td class="label"><s:text name="request.template"/></td>
    <td>
        <s:if test="req.attributes.attr_projectType== 'Offer' ">
            Offer&nbsp;&nbsp;
        </s:if>
        <s:elseif test="req.attributes.attr_projectType== 'Program' ">
            NEW_PCT_
        </s:elseif>
        Template
    </td>
    <td class="label"><s:text name="request.hierarchy"/></td>
    <td>
        <s:if test="req.attributes.attr_projectType== 'Offer' ">
            Offer
        </s:if>
        <s:elseif test="req.attributes.attr_projectType== 'Program' ">
            PMO
        </s:elseif>
    </td>
</tr>



<script type="text/javascript">
    //    show attachments
    $(function () {

        var requestForm = $("div#tab_<s:property value='req.id'/>");
        global.updateIncludeAttributes = function (request) {
        }
    });
</script>
